/**
 * ClassName : PACKAGE_NAME.RunNian
 * Desc : TODO
 *
 * @author : LINPQ
 * @date : 2020/12/8 11:03
 */
public class RunNian {

    public static void main(String[] args) {


        for (int i = 0; i <= 3000 ; i++) {
            if(isRunNian(i)){
                System.out.println(i);
            }
        }
    }


    public static boolean isRunNian(int year) {
        if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
            return true;
        } else {
            return false;
        }
    }
}
